home *** CD-ROM | disk | FTP | other *** search
- /* (c) 1993 LumiNet Publishing Corporation */
- /* All rights reserved */
-
- #include <stdio.h> /* Include definition of NULL */
- #include <stdlib.h>
- #include <dos.h> /* Include prototypes for getvect() & setvect() */
- #include <process.h> /* Include prototypes for spawn functions */
- #include <conio.h>
- #include <fcntl.h> /* Include constants for low-level I/O */
- #include <errno.h> /* Include error constants */
- #include <bios.h>
- #include <direct.h>
- #include <string.h>
- #include "LPCTL1.h"
-
- main(int argc, char *argv[])
- {
- char junkie[1024];
- int a;
- char *auto_fig = "auto.wpg";
- struct figure FIG;
-
- if(argc >1)
- wpopen(argv[1]);
- else
- {
- printf("\nusage sample <filename>");
- exit(1);
- }
- wphrtn( 1 );
-
- wpfig( auto_fig, 0, 0, 0, 2400, 2400 );
- wphpage();
-
- for(a=1;a<3;a++)
- {
- wphpage();
- wphrtn(1);
- wpcntr();
- wpadd("THIS IS THE CENTERED HEADING OF THE PAGE");
- wphrtn(1);
- wpcntr();
- itoa(a,junkie,10);
- wpadd("-> ");
- wpadd(junkie);
- wpadd(" <-");
- wphrtn(1);
- }
- wphpage();
- wpcolmns();
- wpclmon();
- wpadd(" colummed page");
- wpclmoff();
-
- for(a=1;a<3;a++)
- {
- wphpage();
- wphrtn(1);
- wpcntr();
- wpfont(1); /* changed font */
- wpadd("THIS IS THE CENTERED HEADING OF THE PAGE");
- wphrtn(1);
- wpcntr();
- itoa(a,junkie,10);
- wpadd("-> ");
- wpadd(junkie);
- wpadd(" <-");
- wphrtn(1);
- }
-
- wphpage();
- wpadd(" non page");
-
- wpclose();
- exit(0);
- }
-